package com.example.message.utils;

import org.springframework.util.DigestUtils;

public  class Md5Utils {

    public static String getMd5Password(String password){
        String str = password;
        for(int i = 0; i<5;i++){
            str = DigestUtils.md5DigestAsHex(str.getBytes()).toUpperCase();
        }
        return str;
    }

    public static void main(String[] args) {
        System.out.println(Md5Utils.getMd5Password("admin"));
    }
}
